dde6a81b91883522562287da70832c6afa98d724,networkmonitor/src/main/java/ca/rmen/android/networkmonitor/app/dbops/backend/NotificationProgressListener.java,NotificationProgressListener,onWarning,#String#,109

Before Change


    @Override
    public void onWarning(String message) {
        Log.d(TAG, "onWarning() called with " + "message = [" + message + "]");
        NotificationCompat.Builder builder = new NotificationCompat.Builder(mContext);
        builder.setSmallIcon(R.drawable.ic_stat_warning);
        builder.setTicker(mContext.getString(mNotificationProgressTitleId));
        builder.setContentTitle(mContext.getString(mNotificationProgressTitleId));
        builder.setContentText(message);
        builder.setAutoCancel(true);
        builder.setContentIntent(getMainActivityPendingIntent(mContext));
        builder.setColor(ActivityCompat.getColor(mContext, R.color.netmon_color));
        Notification notification = builder.build();
        mNotificationManager.notify(mNotificationId, notification);
    }

After Change




    @Override
    public void onWarning(String message) {
        Log.d(TAG, "onWarning() called with " + "message = [" + message + "]");
        Notification notification = new NotificationCompat.Builder(mContext)
                .setSmallIcon(R.drawable.ic_stat_warning)
                .setTicker(mContext.getString(mNotificationProgressTitleId))
                .setContentTitle(mContext.getString(mNotificationProgressTitleId))
                .setContentText(message)
                .setAutoCancel(true)
                .setContentIntent(getMainActivityPendingIntent(mContext))
                .setColor(ActivityCompat.getColor(mContext, R.color.netmon_color))
                .build();

        mNotificationManager.notify(mNotificationId, notification);
    }